extends Node2D

enum Bus {
	MASTER,
	SFX,
	BGM,
}

#获取音频总线音高的线性能量
func get_volume(bus_index: int) -> float:
	var db := AudioServer.get_bus_volume_db(bus_index)
	return db_to_linear(db)


#设置音频总线音高
func set_volume(bus_index: int, v: float) -> void:
	var db := linear_to_db(v)
	AudioServer.set_bus_volume_db(bus_index, db)
